home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
mx
/
containers
/
utilityClasses
/
ApplicationLayout.as
next >
Wrap
Text File
|
2014-03-27
|
2KB
|
65 lines
package mx.containers.utilityClasses
{
import mx.core.Container;
import mx.core.IFlexDisplayObject;
import mx.core.mx_internal;
use namespace mx_internal;
public class ApplicationLayout extends BoxLayout
{
mx_internal static const VERSION:String = "3.0.0.0";
public function ApplicationLayout()
{
super();
}
override public function updateDisplayList(param1:Number, param2:Number) : void
{
var _loc4_:Number = NaN;
var _loc5_:Number = NaN;
var _loc6_:Number = NaN;
var _loc7_:Number = NaN;
var _loc8_:int = 0;
var _loc9_:int = 0;
var _loc10_:IFlexDisplayObject = null;
super.updateDisplayList(param1,param2);
var _loc3_:Container = super.target;
if(_loc3_.horizontalScrollBar && getHorizontalAlignValue() > 0 || _loc3_.verticalScrollBar && getVerticalAlignValue() > 0)
{
_loc4_ = _loc3_.getStyle("paddingLeft");
_loc5_ = _loc3_.getStyle("paddingTop");
_loc6_ = 0;
_loc7_ = 0;
_loc8_ = _loc3_.numChildren;
_loc9_ = 0;
while(_loc9_ < _loc8_)
{
if((_loc10_ = IFlexDisplayObject(_loc3_.getChildAt(_loc9_))).x < _loc4_)
{
_loc6_ = Math.max(_loc6_,_loc4_ - _loc10_.x);
}
if(_loc10_.y < _loc5_)
{
_loc7_ = Math.max(_loc7_,_loc5_ - _loc10_.y);
}
_loc9_++;
}
if(_loc6_ != 0 || _loc7_ != 0)
{
_loc9_ = 0;
while(_loc9_ < _loc8_)
{
_loc10_ = IFlexDisplayObject(_loc3_.getChildAt(_loc9_));
_loc10_.move(_loc10_.x + _loc6_,_loc10_.y + _loc7_);
_loc9_++;
}
}
}
}
}
}